// Raf Lempens & Bjorn Schobben
#include "SetTargetAbilityVisitor.h"
#include "SetTargetAbility.h"


SetTargetAbilityVisitor::SetTargetAbilityVisitor(): found(false), targetsetableInterface(0)
{
}

SetTargetAbilityVisitor::~SetTargetAbilityVisitor()
{
}

void SetTargetAbilityVisitor::Visit(SetTargetAbility& ability)
{
	found = true;
	targetsetableInterface = ability.TargetsetableInterface();
}

bool SetTargetAbilityVisitor::FoundAbility() const
{
	return found;
}


Targetsetable* SetTargetAbilityVisitor::TargetsetableInterface() const
{
	return targetsetableInterface;
}

void SetTargetAbilityVisitor::Clear()
{
	found = false;
	targetsetableInterface = 0;
}

